package Exceptions;

public class ExceptionsDemo 
{
	public static void main(String[] args) throws PersonException 
	{
		Person ivan = new Person();
		Person maria = new Person();
		
			ivan.hasSameName(maria);
		
		System.out.println("Ivan and maria");
	}
}
